package com.honeycomb.article.service;

import com.honeycomb.article.PageView;
import com.honeycomb.article.PositionScope;
import com.honeycomb.article.SearchPattern;
import com.honeycomb.article.dto.ArticleCatagory;
import com.honeycomb.article.dto.ArticleDetailMessageDto;
import com.honeycomb.article.dto.ArticleinfoDto;
import com.honeycomb.common.base.service.BaseService;
import com.honeycomb.utils.MyDateDTTM;

/**
 * 文章Service接口
 * 
 * @author Wangyu
 */
public interface ArticleService extends BaseService {

	PageView<ArticleinfoDto> searchArticles(ArticleCatagory catagory, SearchPattern searchPattern, PositionScope positionScope,
							PageView<ArticleinfoDto> pageView);

	PageView<ArticleDetailMessageDto> getDetailMessagesOfArticle(Long articleId, SearchPattern searchPattern, PageView<ArticleDetailMessageDto> pageView);

	void doSaveArticle(ArticleinfoDto articleinfo, ArticleDetailMessageDto detailMessage);
	
	void doSaveReply(ArticleDetailMessageDto message, PageView oriPageView);

	void doChangeMessage(Long messageId, String summary, String summaryPicUrl, String content, String title, MyDateDTTM updateDateDTTM, String ip,Long userId, PageView oriPageView);
	
	ArticleDetailMessageDto getDetailMessage(Long messageId);

	boolean doDeleteMessage(Long messageId,Long userId,PageView oriPageView);
	
}
